<?php
if (extension_loaded('redis')) {
    echo "Redis 扩展版本: " . phpversion('redis') . "\n";
} else {
    echo "Redis 扩展未加载\n";
}